<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<style>
* {
  box-sizing: border-box;
  margin: 0;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

</style>
<script>
export default {
  name: 'App',
  created() {
    let info = localStorage.getItem('userInfo')
    if (info) {
      this.$store.commit('setUserInfo', JSON.parse(info))
    }
  }
}
</script>